package cn.itsource.utils;

import cn.hutool.core.util.IdUtil;

import java.util.Stack;

public class IdUtils {
    public static final int WORKER_ID=1;
    public static final int DATACENTER_ID=1;
    public static  Long getId(){
       return IdUtil.createSnowflake(WORKER_ID,DATACENTER_ID).nextId();

    }
}
